package com.sc.highspeed.db.dao;

import com.sc.highspeed.db.model.CarInfoModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2017/12/7.
 */
public interface CarInfoTempDao {

    CarInfoModel getCarInfoByNumber(@Param("number") String number, @Param("color") String color);
    CarInfoModel getCarInfoById(int id);
    List<CarInfoModel> getCarInfoList(@Param("startRow") int startRow, @Param("pageSize") int pageSize);
    int insertCarInfo(CarInfoModel carInfoModel);
    int updateCarInfoById(CarInfoModel carInfoModel);
    int deleteCarInfoById(int id);
    List<CarInfoModel> getCarInfoListByUsername(String creatorUsername);
    List<CarInfoModel> getHazyCarInfo(@Param("number") String number, @Param("color") String color);
    int getCarInfoNumber();
}
